Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Impl isnan/notnan numpy-like#584

Merged
AlexanderKalistratov merged 4 commits intoIntelPython:masterfrom
1e-to:isnan_notnan
Feb 10, 2020
Merged

Impl isnan/notnan numpy-like#584
AlexanderKalistratov merged 4 commits intoIntelPython:masterfrom
1e-to:isnan_notnan

Conversation

@1e-to
Copy link
Copy Markdown
Contributor

@1e-to 1e-to commented Feb 10, 2020

image

@AlexanderKalistratov
Copy link
Copy Markdown
Collaborator

@1e-to conflicts

Comment thread sdc/functions/numpy_like.py Outdated
length = len(self)
res = numpy.empty(shape=length, dtype=numpy.bool_)
for i in prange(length):
res[i] = isnan(self[i])
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
res[i] = isnan(self[i])
res[i] = not isnan(self[i])

@AlexanderKalistratov AlexanderKalistratov merged commit 12745a1 into IntelPython:master Feb 10, 2020
@1e-to 1e-to deleted the isnan_notnan branch February 12, 2020 08:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants